#!/bin/bash
# The following may be heavily borrowed from, if not 
# copied from, the NSA's December 20, 2007 "Guide to the 
# Secure Configuration of Red Hat Enterprise Linux 5, Revision 2"

# Title - Disable the rhnsd Daemon

#Initialize variables
export PRECHECK="checkService rhnsd off"
export QUESTION="Would you like to disable the rhnsd daemon?"
export DESCRIPTION="The rhnsd daemon polls the Red Hat Network web site for scheduled actions. Unless it is actually necessary to schedule updates remotely through the RHN website, it is recommended that the service be disabled.The rhnsd daemon is enabled by default, but until the system has been registered with the Red Hat Network, it will not run. However, once the registration process is complete, the rhnsd daemon will run in the background and periodically call the rhn check utility. It is the rhn check utility that communicates with the Red Hat Network web site.This utility is not required for the system to be able to access and install system updates.  Once the system has been registered, either use the provided yum-updatesd service or create a cron job to automatically apply updates."
export SOLUTION="chkconfig rhnsd off"